@charset "utf-8";
@mixin warp($width,$height,$top:0,$bottom:0){
  width:$width;height:$height;
  margin:$top auto $bottom;overflow: hidden;
}
@mixin background($q,$w:center,$e:center,$r:cover){
  background:url($q) no-repeat $w $e/$r;
}
@mixin transform($value...){
  -webkit-transform: $value;
  -moz-transform: $value;
  -o-transform: $value;
  transform: $value;
}
@mixin absolute($left:0,$right:0,$top:0,$bottom:0){
  position: absolute;
  left:$left;right:$right;bottom:$bottom;top:$top;
  margin:auto;
}
@mixin box-sha($shadow...){
  -webkit-box-shadow: $shadow;
  -moz-box-shadow: $shadow;
  -o-box-shadow: $shadow;
  box-shadow: $shadow;
}
@mixin box-shadow($shadow...) {
  @if length($shadow) >= 1 {
    @include box-sha($shadow);
  } @else{
    $shadow:0 0 4px rgba(0,0,0,.3);
    @include box-sha($shadow);
  }
}
@mixin radius($radius:5px){
  -webkit-border-radius: $radius;
  border-radius: $radius;
}
@mixin center($font:16px,$color:#333,$lineheight:20px,$center:center){
  text-align: $center;line-height: $lineheight;
  font-size: $font;color:$color;
}
//@mixin fenbianlv($bian){
//  //$fenbian:1080px,540px,480px,414px,412px,385px,375px,360px,320px;
//  $fenbian:320px,360px,375px,385px,412px,414px,480px,540px,640px,720px,750px,1080px;
//  @each $size in $fenbian{
//    @media screen and(min-width: $size){
//      font-size: 100px*$size/$bian}
//  }
//}

//$list 就是一个列表      (each循环   循环着将list里的变量名成为图片)
//$list: adam john wynn mason kuroir;
//@mixin author-images {
//  @each $author in $list {
//    .photo-#{$author} {
//      background: url("/images/avatars/#{$author}.png") no-repeat;
//    }
//  }
//}
//.author-bio {
//  @include author-images;
//}

//函数
@function width($a:5px,$b:5px,$c:5px,$d:5px) {
  @return $a,$b,$c,$d;
}

////栅格化
//$total: 8;
//@function column-width($col) {
//  @return percentage($col/$total);
//}
//@for $i from 1 through $total {
//    .p-#{$i} {
//    width: column-width($i)
//  }
//}

















